<template>
  <div class="container">
    <div class="img container-item">
      <img src="@/assets/images/404.svg" alt srcset />
    </div>
    <div class="content container-item">
      <div class="code">404</div>
      <div class="tip">你查看的页面貌似丢失了呢...</div>
      <div class="action">
        <router-link to="/">返回首页</router-link>
      </div>
    </div>
  </div>
</template>

 <style lang="scss" scoped>
.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 500px;
  border-radius: 15px;
  background: #fff;
  display: flex;
  box-shadow: 0px 0px 10px 5px #ccc;
}

.container .container-item {
  /* 左侧和右侧各占50% */
  width: 50%;
}

.container .img {
  background: #ffcc93;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
  img {
    width: 100%;
  }
}

.container .content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #666;
}

.container .content .code {
  font-size: clamp(150px, 20vw, 200px);
  font-weight: bold;
  text-align: center;
  color: #5d72ff;
  font-family: Arial, Helvetica, sans-serif;
}

.container .content .tip {
  text-align: center;
}

.container .content .action {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px;
}

.container .content .action a {
  color: #666;
  margin: 0 5px;
}
</style>
